Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v1 pools from LpSugar #29

Merged
merged 4 commits into from
Sep 28, 2023
Merged

Remove v1 pools from LpSugar #29

merged 4 commits into from
Sep 28, 2023

Conversation

ethzoomer
Copy link
Contributor

No description provided.

@ethzoomer ethzoomer requested a review from stas September 25, 2023 19:01
Copy link
Collaborator

@stas stas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but we'll have to remove the old v1 interface definitions, see the Aero fork for more context:
aerodrome-finance@02a9f33#diff-638bd86befbbe9f223dd728ed1b93f11689693558456f317ddd73761f60b77f5L102

@@ -311,24 +311,20 @@ def forSwaps(_limit: uint256, _offset: uint256) -> DynArray[SwapLp, MAX_POOLS]:

factory: IPoolFactory = IPoolFactory(factories[index])

if factory.address == self.v1_factory:
continue

pools_count: uint256 = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this can be inline

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏃‍♂️

@ethzoomer ethzoomer requested a review from stas September 26, 2023 16:10
@@ -214,88 +197,11 @@ def _pools(with_convertor: bool) -> DynArray[address[3], MAX_POOLS]:

return pools

@external
@view
def toMigrate(_account: address) -> DynArray[Lp, MAX_POOLS]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethzoomer this is still used by the dapp, I'm down to remove the migration, but will need it cleaned up from the app repo as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make app Linear task and start working on this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty ty, this is good to merge otherwise.

Copy link
Collaborator

@stas stas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, just need to sync up with the dapp.

@ethzoomer ethzoomer merged commit 384f758 into v2 Sep 28, 2023
0 of 2 checks passed
@stas stas deleted the remove-v1-pools branch September 29, 2023 13:00
ethzoomer added a commit to aerodrome-finance/sugar that referenced this pull request Apr 19, 2024
* Remove v1 pools from LpSugar

* Remove all v1 calls from LpSugar

* Point to latest LpSugar deployment

* Add latest LpSugar address
ethzoomer added a commit to aerodrome-finance/sugar that referenced this pull request Apr 19, 2024
* Remove v1 pools from LpSugar

* Remove all v1 calls from LpSugar

* Point to latest LpSugar deployment

* Add latest LpSugar address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants